import React from 'react';
import { Button, Result } from 'antd';
import { useNavigate } from 'react-router-dom';

const Forbidden: React.FC = () => {
  const navigate = useNavigate();

  return (
    <Result
      status="403"
      title="403"
      subTitle="抱歉，您没有权限访问此页面。"
      extra={[
        <Button type="primary" key="login" onClick={() => navigate('/auth/login')}>
          去登录
        </Button>,
        <Button key="back" onClick={() => navigate('/')}>
          返回首页
        </Button>,
      ]}
    />
  );
};

export default Forbidden; 